package com.yanqu.road.server.logic.thread;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.bulletscreen.BulletScreenModule;
import com.yanqu.road.utils.executor.GeneralTask;

public class BulletScreenTask extends GeneralTask {

    private GamePlayer player;
    private String content;
    private int activityId;

    public BulletScreenTask(GamePlayer player, String content, int activityId) {
        this.player = player;
        this.activityId = activityId;
        this.content = content;
    }

    @Override
    public void doRun() {
        player.getModule(BulletScreenModule.class).bulletScreen(activityId, content);
    }
}
